package com.zhuzi.common.constant;


public enum ConstantCode {
    OK(200, "成功"),
    ERROR(999, "系统内部错误，请联系系统运维人员！"),
    NET_ERROR(904, "网络异常，请联系系统运维人员！"),
    NOT_VERIFY(900, "数据校验失败"),
    NOT_INSERT(901, "新增失败"),
    NOT_MODIFIED(902, "更新失败"),
    NOT_DELETE(903, "删除失败");

    private int code;
    private String name;

    private ConstantCode(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
